package com.sfh.alliance;

import android.os.Bundle;
import android.view.View;

import com.sfh.alliance.beauty.BeautyListActivity;
import com.sfh.alliance.home.FootView;
import com.sfh.alliance.home.PersonView;
import com.sfh.alliance.home.TopView;
import com.sfh.base.mvp.IPresenter;
import com.sfh.base.ui.UIMVPActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;


public class MainActivity extends UIMVPActivity {


    @BindView(R.id.topView)
    TopView topView;

    @BindView(R.id.iv_beauty)
    PersonView ivBeauty;

    @BindView(R.id.iv_zw)
    PersonView ivZw;

    @BindView(R.id.iv_js)
    PersonView ivJs;

    @BindView(R.id.footView)
    FootView footView;

    @Override
    public IPresenter createPresenter() {

        return null;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate (savedInstanceState);
        setContentView (R.layout.activity_main);
        ButterKnife.bind (this);
        ivBeauty.setData (R.drawable.archive_icon_14, "好久没见", R.drawable.maid);
        ivZw.setData (R.drawable.archive_icon_9, "需要处理", R.drawable.lidequan_default);
        ivJs.setData (R.drawable.archive_icon_3, "需要处理军务", R.drawable.zhuchang3);
    }


    @OnClick({R.id.iv_beauty, R.id.iv_zw, R.id.iv_js})
    public void onClick(View view) {

        switch (view.getId ()) {
            case R.id.iv_beauty:
                BeautyListActivity.startContentUI (this);
                break;
            case R.id.iv_zw:
                break;
            case R.id.iv_js:
                break;
        }
    }
}
